package com.minimalist.common.entity.lindi.vo.indexchangerecord;

import com.minimalist.common.config.mybatis.bo.PageReq;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;

/**
 * @author 11987
 */

@Schema(name = "林地指标交易平台_指标变更记录查询实体")
public class LindiIndexChangeRecordQueryVO extends PageReq implements Serializable{
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(name = "townName", description = "镇街名称", type = "string")
    private String townName;

    @Schema(name = "tradeApplicationId", description = "交易申请ID", type = "long")
    private Long tradeApplicationId;

    public LindiIndexChangeRecordQueryVO(){
    }

    public String getTownName(){
        return townName;
    }

    public void setTownName(String townName){
        this.townName = townName;
    }

    public Long getTradeApplicationId(){
        return tradeApplicationId;
    }

    public void setTradeApplicationId(Long tradeApplicationId){
        this.tradeApplicationId = tradeApplicationId;
    }

    @Override
    public boolean equals(Object o){
        if (this == o){
            return true;
        }
        if (o == null || getClass() != o.getClass()){
            return false;
        }
        if (!super.equals(o)){
            return false;
        }
        LindiIndexChangeRecordQueryVO that = (LindiIndexChangeRecordQueryVO) o;
        return Objects.equals(townName, that.townName) && Objects.equals(tradeApplicationId, that.tradeApplicationId);
    }

    @Override
    public int hashCode(){
        return Objects.hash(super.hashCode(), townName, tradeApplicationId);
    }
}